{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" method="post" action=""  enctype="multipart/form-data">
                <div class="box-header with-border">
                    <span class="fa fa-volume-up" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">通知审核</p>
					
                </div>
                <div class="box-body">
                    <div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   文章标题：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <input type="text" class="form-control" value="{%$notice_data.notice_title%}" disabled="disabled"> 
						  </div> 
				    </div>
					 <div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   发布部门：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <input type="text" class="form-control" value="{%$notice_data.name%}" disabled="disabled"> 
						  </div> 
				    </div>
					 <div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   发布时间：
						  </label>
						  <div class="col-md-6" style="padding:0;">
							   <input type="text" class="form-control" value="{%$notice_data.start_time%}" id="datepicker" disabled="disabled"> 
						  </div> 						  
				    </div>
					<div style="clear:both; height:20px;"></div>

                    <div class="form-group">
						<label>文章内容：</label>
						<textarea id="category_content" name="notice_content" rows="16" cols="80" style="width: 100%">{%$notice_data.notice_content%}</textarea>
					</div>
					 <div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   附件：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <a href="index.php?a=notice.output&notice_file={%$notice_data.notice_file%}">{%$notice_data.notice_file%}</a>
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   阅读对象：
						  </label>
						  <p style="color:#333;">阅读记录列表（红色：未阅读用户）</p>
					<table class="table table-bordered table-striped" id="mytable">
                      <thead>
					    <tr>
						    <td>部门</td>
							<td>阅读用户</td>
						</tr>
                       </thead>
						<tr>
						    <td>老师</td>
							<td>
							{%foreach from=$staff_name key=key item=value%}
								{%if $value.is_read ==1%}
									<span >{%$value.staff_name%}</span>，
								{%else%}
									<span style="color:red;">{%$value.staff_name%}</span>，
								{%/if%}
							{%/foreach%}	
							
							</td>
						</tr>
						<tr>
						    <td>学生</td>
							<td>
							{%foreach from=$student_name key=key item=value%}
								{%if $value.is_read ==1%}
									<span >{%$value.student_name%}</span>，
								{%else%}
									<span style="color:red;">{%$value.staff_name%}</span>，
								{%/if%}
							{%/foreach%}	
							
							</td>
						</tr>
					</table>
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   审批结果：
						  </label>
						  <div class="input-group col-md-10 col-sm-12 col-xs-12">
							   <label class="choice"><input type="radio" name="is_show" value="1" checked>同意</label>
							   <label class="choice"><input type="radio" name="is_show" value="2">不同意</label>
						  </div> 
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   审批意见：
						  </label>
						  <div class="input-group col-md-11 col-sm-12 col-xs-12">
							  <textarea class="form-control" rows="3" name="notice_opinion">{%$notice_data.notice_opinion%}</textarea>
						  </div> 
						  
				    </div>
					<div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   附件：
						  </label>
						  <div class="input-group col-md-10 col-sm-12 col-xs-12">
							  <input type="file" name="notice_ffile" multiple="multiple"> 
						  </div> 
				    </div>	
				</div><!--box-body -->
                <div class="box-footer text-center">
                    <button type="submit" class="btn btn-primary ">  回 传</button>
                </div>
             </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
<!--编辑器-->
<script type="text/javascript" src="static/xhe/xheditor-1.2.2.min.js"></script>
<script type="text/javascript" src="static/xhe/xheditor_lang/zh-cn.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>
